import {XHRBackend} from '@angular/http'
import {InMemoryBackendService, SEED_DATA} from 'angular2-in-memory-web-api'
import {InMemoryDataService} from './in-memory-data.service'


import {bootstrap} from "@angular/platform-browser-dynamic";
import {HTTP_PROVIDERS} from "@angular/http";
import {AppComponent} from "./app2.component";
import {APP_ROUTER_PROVIDERS} from "./app.routes";
// import {enableProdMode} from "@angular/core";

// enableProdMode()

bootstrap(AppComponent, [
    APP_ROUTER_PROVIDERS,
    HTTP_PROVIDERS,
    {provide: XHRBackend, useClass: InMemoryBackendService},
    {provide: SEED_DATA, useClass: InMemoryDataService}
])